XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
Go to the documentation of this file.
34 using SingletonOPtr = std::unique_ptr<T>;
37 template <
typename... Args>
38 static T&
get(Args&&... args)
40 static SingletonOPtr instance_(
new T(std::forward<Args>(args)...));
A thread-safer (?) Singleton implementation with argument forwarding.
Definition: singleton.h:33
constexpr Singleton & operator=(const Singleton &) const =delete
constexpr Singleton(const Singleton &)=delete
constexpr Singleton & operator=(const Singleton &&) const =delete
static T & get(Args &&... args)
Definition: singleton.h:38
constexpr Singleton(const Singleton &&)=delete
constexpr Singleton()=default
virtual ~Singleton()=default
Definition: capture_base.h:23